﻿using System;
using System.Web.UI;
using InhollandAir.auxiliary;

namespace InhollandAir
{
    public partial class Default : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CustomerFactory.TryLogin((customer, success) =>
            {
                if (!success) lbLogout.Visible = false;
            });
        }

        protected void Logout(object sender, EventArgs e)
        {
            CustomerFactory.Logout(true);
        }
    }
}